<fieldset>
    <legend>条件搜索</legend>
    <form action="{:sysuri()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">活动</label>
            <label class="layui-input-inline">
                <select name="activity_id" cleable value="{$query.activity_id|default=''}" id="">
                    <option value="">全部</option>
                    {volist name="activitys" id="vo"} 
                        <option   {if isset($query.activity_id) && $query.activity_id == $vo.id} selected {/if}  value="{$vo.id}">{$vo.name}</option>
                    {/volist}
                  
                </select>
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">票券名称</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="name" placeholder="请输入活动名称" value="{$query.name|default=''}">
            </label>
        </div>

        
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">是否在售</label>
            <label class="layui-input-inline">
                <select name="is_open" value="{$query.is_open|default=''}" id="">
                    <option  {if !isset($query.is_open) || $query.is_open == ''} selected {/if}  value="">全部</option>
                    <option  {if isset($query.is_open) && $query.is_open == 1} selected {/if} value="1">是</option>
                    <option {if isset($query.is_open) && $query.is_open == '0'} selected {/if}  value="0">否</option>
                </select>
            </label>
        </div>


        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>

        </div>
    </form>

</fieldset>

